<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function genErorMSG($msg){
    if($msg){
        //$msg=  htmlentities($msg);
        ?>
            <div class="error-message-box" style="position: absolute;top: 0;left: 0;
                 min-height: 200px;background: #ddd;border: 1px solid red;min-width: 400px;
                 z-index: 11
                 ">
                <div class="icon16 hover50" style="position: absolute;top: 0;right: 0" onclick="hideerrorbox();">
                    <img src="../images/icon/close_window.gif"/>
                </div>
                <div style="padding: 10px 20px">
                    <h1 style="color: red">Error<span class="id"></span></h1>
                    <p class="msg">
                        <?=$msg?>
                    </p>
                </div>
            
            </div>
            <?
    }
        
}
?>
